<?php

/**
 * General form that can be saved; it can contain any fields
 */
abstract class myBaseForm extends BaseFormPropel
{
    public function getModelName()
    {
        return 'User';
    }

    /** -- overridden --
     * Updates and saves the current object.
     *
     * @param mixed $con An optional connection object
     */
    protected function doSave($con = null)
    {
        if (null === $con)
        {
            $con = $this->getConnection();
        }

        $this->updateObject();

        $this->doSaveForm();

        // embedded forms
        $this->saveEmbeddedForms($con);
    }

    final public function processValues($values) { return $values; }

    final public function doUpdateObject($values) {}

    abstract protected function doSaveForm();

}
